<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			//var reg=/^1\d{10}$/;
			var reg=/\d/;
			var str=window.prompt("input a string:");
			alert(reg.test(str));
		</script>
	</head>
	<body>
	</body>
</html>
